﻿using System;
using System.Collections.Generic;
using PGun.MVC.Core.Domain.Orders;

namespace PGun.MVC.Core.Domain.Shipping
{
    public partial class Shipment : BaseEntity
    {
        private ICollection<ShipmentOrderProductVariant> _shipmentOrderProductVariants;

        public int OrderId { get; set; }

        public string TrackingNumber { get; set; }

        public decimal? ToalWeight { get; set; }

        public DateTime? ShippedDateUtc { get; set; }

        public DateTime? DeliveryDateUtc { get; set; }

        public DateTime CreateOnUtc { get; set; }

        public virtual  Order { get; set; }

        public virtual ICollection<ShipmentOrderProductVariant> ShipmentOrderProductVariants
        {
            get { return _shipmentOrderProductVariants ?? (_shipmentOrderProductVariants = new List<ShipmentOrderProductVariant>()); }
            protected set { _shipmentOrderProductVariants = value; }
        }
    }
}
